package com.example.base.entity

/**
 * 预下单的参数实体类  给每一个字段一个默认值，这样在初始化的时候就不需要给值了
 */
data class ParamPreOrder(
    val attrValueId: Int = 0,
    val bargainId: Int = 0,
    val bargainUserId: Int = 0,
    val combinationId: Int = 0,
    var orderDetails: List<OrderDetail> = arrayListOf(),
    val orderNo: String = "",
    val pinkId: Int = 0,
    var preOrderType: String = "",
    val productId: Int = 0,
    val productNum: Int = 0,
    val seckillId: Int = 0,
    val shoppingCartId: Int = 0
)

data class OrderDetail(
    val attrValueId: Int = 0,
    val bargainId: Int = 0,
    val bargainUserId: Int = 0,
    val combinationId: Int = 0,
    val orderDetails: List<Any>  = arrayListOf(),
    val orderNo: String = "",
    val pinkId: Int = 0,
    val preOrderType: String = "",
    val productId: Int = 0,
    val productNum: Int = 0,
    val seckillId: Int = 0,
    var shoppingCartId: Int = 0
)